<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0,minimal-ui">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="renderer" content="webkit">
    <title>div添加图像边框css2与css3写法</title>
    <style type="text/css">
        div {
            width: 450px;
            padding: 60px 35px
        }
        .css2 {
            background: url('../img/6630730215629597494.png');
            background-repeat: no-repeat;
            background-size: 450px 104px;
            margin: 3px;
            height: 104px;
        }
        .css3 {
            margin-top: 500px;
            /*border:15px solid transparent;*/
            /*-webkit-border-image: url('../img/6630730215629597494.png')  30 30 round;*/
            -webkit-border-image: url('../img/6630730215629597494.png')  3 stretch stretch;
            /*兼容写法*/
            -moz-border-image: url('../img/6630730215629597494.png')  3 stretch stretch;
            -o-border-image: url('../img/6630730215629597494.png')  3 stretch stretch;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div class="css2">
        css2 background-image写法会溢出 <br/>
        css2 background-image写法 <br/>
        css2 background-image写法 <br/>
        css2 background-image写法 <br/>
        css2 background-image写法 <br/>
        css2 background-image写法 <br/>
        css2 background-image写法 <br/>
        css2 background-image写法 <br/>
    </div>
    <div class="css3">
        css3 border-image写法不会溢出 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
        css3 border-image写法 <br/>
    </div>
</body>
</html>